package QC.MessageBox.beans;

import QC.MessageBox.annotation.APPTable;

/**
 * Created by Andaren on 2017/5/27.
 * Used for: 客服服务数据
 */
@APPTable(table = "t_cus_serv_data")
public class CusServiceData {

    @APPTable(column = "id", isId = true)
    private Long id;            // 客户服务数据

    @APPTable(column = "csid")
    private String csId;        // 客服主键ID

    @APPTable(column = "developerid")
    private String developerId; // 开发者ID

    @APPTable(column = "openid")
    private String openId;      // 服务的粉丝openid

    @APPTable(column = "active_count")
    private Long activeCount;   // 互动次数

    @APPTable(column = "create_time")
    private Long createTime;    // 创建的时间戳

    @APPTable(column = "current_use")
    private String currentUse;    // 是否当前在统计的客服-用户记录，如果用户重新关注或者转接则创建新的记录，该记录变为非当前状态

    @APPTable(column = "flag")
    private String flag;        // 备用

    public Long getId() {
        return id;
    }

    public CusServiceData setId(Long id) {
        this.id = id;
        return this;
    }

    public String getCsId() {
        return csId;
    }

    public CusServiceData setCsId(String csId) {
        this.csId = csId;
        return this;
    }

    public String getOpenId() {
        return openId;
    }

    public CusServiceData setOpenId(String openId) {
        this.openId = openId;
        return this;
    }

    public Long getActiveCount() {
        return activeCount;
    }

    public CusServiceData setActiveCount(Long activeCount) {
        this.activeCount = activeCount;
        return this;
    }

    public String getFlag() {
        return flag;
    }

    public CusServiceData setFlag(String flag) {
        this.flag = flag;
        return this;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public CusServiceData setCreateTime(Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getCurrentUse() {
        return currentUse;
    }

    public CusServiceData setCurrentUse(String currentUse) {
        this.currentUse = currentUse;
        return this;
    }

    public String getDeveloperId() {
        return developerId;
    }

    public CusServiceData setDeveloperId(String developerId) {
        this.developerId = developerId;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("CusServiceData{");
        sb.append("id=").append(id);
        sb.append(", csId='").append(csId).append('\'');
        sb.append(", developerId='").append(developerId).append('\'');
        sb.append(", openId='").append(openId).append('\'');
        sb.append(", activeCount=").append(activeCount);
        sb.append(", createTime=").append(createTime);
        sb.append(", currentUse='").append(currentUse).append('\'');
        sb.append(", flag='").append(flag).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
